//
//  LCYTopicCoverimgCell.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 liu. All rights reserved.
//

#import "LCYTopicCoverimgCell.h"

@interface LCYTopicCoverimgCell ()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UIImageView *coverimgView;
@property (weak, nonatomic) IBOutlet UILabel *unameLable;
@property (weak, nonatomic) IBOutlet UILabel *addtime_fLable;
@property (weak, nonatomic) IBOutlet UILabel *addtimeLable;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UILabel *contentLable;

@end

@implementation LCYTopicCoverimgCell

-(void)setModel:(LCYTopicCoverimgModel *)model {
    if (_model != model) {
        _model = model;
    }
}


- (void)layoutSubviews {
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:self.model.userinfo[@"icon"]]];
    [self.coverimgView sd_setImageWithURL:[NSURL URLWithString:self.model.coverimg]];
    self.unameLable.text = self.model.userinfo[@"uname"];
    self.addtime_fLable.text = self.model.addtime_f;
    self.addtimeLable.text = [NSString stringWithFormat:@"%@",self.model.addtime];
    self.titleLable.text = self.model.title;
    self.contentLable.text = self.model.content;
    
    
    self.iconView.layer.cornerRadius = 15;
    self.iconView.clipsToBounds = YES;
}

+ (CGFloat)height {
    return 220;
}




@end
